/**
 * pharma-message - 27 avr. 2011
 * guillaume
 */
package org.bspv.pharma.message.mail.impl;

import java.io.Serializable;
import java.util.Map;

import org.springframework.core.io.Resource;

/**
 * @author guillaume
 *
 */
public class TemplatedMail extends AbstractMail {

    /**
     * Template pour la création du corps du mail.
     */
    private MailTemplate template;
    /**
     * Booleen indiquant si le template correspond à de l'html.
     */
    private boolean html;
    /**
     * Liste des pieces jointes.
     */
    private Map<String, Resource> attachments;
    /**
     * Variables pour le template.
     */
    private Map<String, Serializable> dataModel;
    
    
    /**
     * @return the template
     */
    public final MailTemplate getTemplate() {
        return template;
    }
    /**
     * @param template the template to set
     */
    public final void setTemplate(MailTemplate template) {
        this.template = template;
    }
    /**
     * @return the html
     */
    public final boolean isHtml() {
        return html;
    }
    /**
     * @param html the html to set
     */
    public final void setHtml(boolean html) {
        this.html = html;
    }
    /**
     * @return the attachments
     */
    public final Map<String, Resource> getAttachments() {
        return attachments;
    }
    /**
     * @param attachments the attachments to set
     */
    public final void setAttachments(Map<String, Resource> attachments) {
        this.attachments = attachments;
    }
    /**
     * @return the dataModel
     */
    public final Map<String, Serializable> getDataModel() {
        return dataModel;
    }
    /**
     * @param dataModel the dataModel to set
     */
    public final void setDataModel(Map<String, Serializable> dataModel) {
        this.dataModel = dataModel;
    }
    
}
